Optimal. Leaf size=238 \[ -\frac{361 \sqrt{a+i a \tan (c+d x)}}{60 a^3 d \tan ^{\frac{3}{2}}(c+d x)}+\frac{89}{20 a^2 d \tan ^{\frac{3}{2}}(c+d x) \sqrt{a+i a \tan (c+d x)}}+\frac{707 i \sqrt{a+i a \tan (c+d x)}}{60 a^3 d \sqrt{\tan (c+d x)}}-\frac{\left (\frac{1}{8}-\frac{i}{8}\right ) \tanh ^{-1}\left (\frac{(1+i) \sqrt{a} \sqrt{\tan (c+d x)}}{\sqrt{a+i a \tan (c+d x)}}\right )}{a^{5/2} d}+\frac{7}{10 a d \tan ^{\frac{3}{2}}(c+d x) (a+i a \tan (c+d x))^{3/2}}+\frac{1}{5 d \tan ^{\frac{3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.754882, antiderivative size = 238, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 6, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.214, Rules used = {3559, 3596, 3598, 12, 3544, 205} \[ -\frac{361 \sqrt{a+i a \tan (c+d x)}}{60 a^3 d \tan ^{\frac{3}{2}}(c+d x)}+\frac{89}{20 a^2 d \tan ^{\frac{3}{2}}(c+d x) \sqrt{a+i a \tan (c+d x)}}+\frac{707 i \sqrt{a+i a \tan (c+d x)}}{60 a^3 d \sqrt{\tan (c+d x)}}-\frac{\left (\frac{1}{8}-\frac{i}{8}\right ) \tanh ^{-1}\left (\frac{(1+i) \sqrt{a} \sqrt{\tan (c+d x)}}{\sqrt{a+i a \tan (c+d x)}}\right )}{a^{5/2} d}+\frac{7}{10 a d \tan ^{\frac{3}{2}}(c+d x) (a+i a \tan (c+d x))^{3/2}}+\frac{1}{5 d \tan ^{\frac{3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3559
Rule 3596
Rule 3598
Rule 12
Rule 3544
Rule 205
Rubi steps
\begin{align*} \int \frac{1}{\tan ^{\frac{5}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}} \, dx &=\frac{1}{5 d \tan ^{\frac{3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}}+\frac{\int \frac{\frac{13 a}{2}-4 i a \tan (c+d x)}{\tan ^{\frac{5}{2}}(c+d x) (a+i a \tan (c+d x))^{3/2}} \, dx}{5 a^2}\\ &=\frac{1}{5 d \tan ^{\frac{3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}}+\frac{7}{10 a d \tan ^{\frac{3}{2}}(c+d x) (a+i a \tan (c+d x))^{3/2}}+\frac{\int \frac{\frac{141 a^2}{4}-\frac{63}{2} i a^2 \tan (c+d x)}{\tan ^{\frac{5}{2}}(c+d x) \sqrt{a+i a \tan (c+d x)}} \, dx}{15 a^4}\\ &=\frac{1}{5 d \tan ^{\frac{3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}}+\frac{7}{10 a d \tan ^{\frac{3}{2}}(c+d x) (a+i a \tan (c+d x))^{3/2}}+\frac{89}{20 a^2 d \tan ^{\frac{3}{2}}(c+d x) \sqrt{a+i a \tan (c+d x)}}+\frac{\int \frac{\sqrt{a+i a \tan (c+d x)} \left (\frac{1083 a^3}{8}-\frac{267}{2} i a^3 \tan (c+d x)\right )}{\tan ^{\frac{5}{2}}(c+d x)} \, dx}{15 a^6}\\ &=\frac{1}{5 d \tan ^{\frac{3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}}+\frac{7}{10 a d \tan ^{\frac{3}{2}}(c+d x) (a+i a \tan (c+d x))^{3/2}}+\frac{89}{20 a^2 d \tan ^{\frac{3}{2}}(c+d x) \sqrt{a+i a \tan (c+d x)}}-\frac{361 \sqrt{a+i a \tan (c+d x)}}{60 a^3 d \tan ^{\frac{3}{2}}(c+d x)}+\frac{2 \int \frac{\sqrt{a+i a \tan (c+d x)} \left (-\frac{2121 i a^4}{16}-\frac{1083}{8} a^4 \tan (c+d x)\right )}{\tan ^{\frac{3}{2}}(c+d x)} \, dx}{45 a^7}\\ &=\frac{1}{5 d \tan ^{\frac{3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}}+\frac{7}{10 a d \tan ^{\frac{3}{2}}(c+d x) (a+i a \tan (c+d x))^{3/2}}+\frac{89}{20 a^2 d \tan ^{\frac{3}{2}}(c+d x) \sqrt{a+i a \tan (c+d x)}}-\frac{361 \sqrt{a+i a \tan (c+d x)}}{60 a^3 d \tan ^{\frac{3}{2}}(c+d x)}+\frac{707 i \sqrt{a+i a \tan (c+d x)}}{60 a^3 d \sqrt{\tan (c+d x)}}+\frac{4 \int -\frac{45 a^5 \sqrt{a+i a \tan (c+d x)}}{32 \sqrt{\tan (c+d x)}} \, dx}{45 a^8}\\ &=\frac{1}{5 d \tan ^{\frac{3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}}+\frac{7}{10 a d \tan ^{\frac{3}{2}}(c+d x) (a+i a \tan (c+d x))^{3/2}}+\frac{89}{20 a^2 d \tan ^{\frac{3}{2}}(c+d x) \sqrt{a+i a \tan (c+d x)}}-\frac{361 \sqrt{a+i a \tan (c+d x)}}{60 a^3 d \tan ^{\frac{3}{2}}(c+d x)}+\frac{707 i \sqrt{a+i a \tan (c+d x)}}{60 a^3 d \sqrt{\tan (c+d x)}}-\frac{\int \frac{\sqrt{a+i a \tan (c+d x)}}{\sqrt{\tan (c+d x)}} \, dx}{8 a^3}\\ &=\frac{1}{5 d \tan ^{\frac{3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}}+\frac{7}{10 a d \tan ^{\frac{3}{2}}(c+d x) (a+i a \tan (c+d x))^{3/2}}+\frac{89}{20 a^2 d \tan ^{\frac{3}{2}}(c+d x) \sqrt{a+i a \tan (c+d x)}}-\frac{361 \sqrt{a+i a \tan (c+d x)}}{60 a^3 d \tan ^{\frac{3}{2}}(c+d x)}+\frac{707 i \sqrt{a+i a \tan (c+d x)}}{60 a^3 d \sqrt{\tan (c+d x)}}+\frac{i \operatorname{Subst}\left (\int \frac{1}{-i a-2 a^2 x^2} \, dx,x,\frac{\sqrt{\tan (c+d x)}}{\sqrt{a+i a \tan (c+d x)}}\right )}{4 a d}\\ &=-\frac{\left (\frac{1}{8}-\frac{i}{8}\right ) \tanh ^{-1}\left (\frac{(1+i) \sqrt{a} \sqrt{\tan (c+d x)}}{\sqrt{a+i a \tan (c+d x)}}\right )}{a^{5/2} d}+\frac{1}{5 d \tan ^{\frac{3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}}+\frac{7}{10 a d \tan ^{\frac{3}{2}}(c+d x) (a+i a \tan (c+d x))^{3/2}}+\frac{89}{20 a^2 d \tan ^{\frac{3}{2}}(c+d x) \sqrt{a+i a \tan (c+d x)}}-\frac{361 \sqrt{a+i a \tan (c+d x)}}{60 a^3 d \tan ^{\frac{3}{2}}(c+d x)}+\frac{707 i \sqrt{a+i a \tan (c+d x)}}{60 a^3 d \sqrt{\tan (c+d x)}}\\ \end{align*}
Mathematica [A] time = 1.4919, size = 199, normalized size = 0.84 \[ \frac{i e^{-6 i (c+d x)} \sqrt{\frac{a e^{2 i (c+d x)}}{1+e^{2 i (c+d x)}}} \left (33 e^{2 i (c+d x)}+348 e^{4 i (c+d x)}-1527 e^{6 i (c+d x)}+983 e^{8 i (c+d x)}+15 e^{5 i (c+d x)} \left (-1+e^{2 i (c+d x)}\right )^{3/2} \tanh ^{-1}\left (\frac{e^{i (c+d x)}}{\sqrt{-1+e^{2 i (c+d x)}}}\right )+3\right )}{60 \sqrt{2} a^3 d \left (-1+e^{2 i (c+d x)}\right ) \sqrt{\tan (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.05, size = 656, normalized size = 2.8 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: RuntimeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 3.32735, size = 1401, normalized size = 5.89 \begin{align*} -\frac{\sqrt{2} \sqrt{\frac{a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt{\frac{-i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}{\left (983 \, e^{\left (10 i \, d x + 10 i \, c\right )} - 544 \, e^{\left (8 i \, d x + 8 i \, c\right )} - 1179 \, e^{\left (6 i \, d x + 6 i \, c\right )} + 381 \, e^{\left (4 i \, d x + 4 i \, c\right )} + 36 \, e^{\left (2 i \, d x + 2 i \, c\right )} + 3\right )} e^{\left (i \, d x + i \, c\right )} + 30 \,{\left (a^{3} d e^{\left (10 i \, d x + 10 i \, c\right )} - 2 \, a^{3} d e^{\left (8 i \, d x + 8 i \, c\right )} + a^{3} d e^{\left (6 i \, d x + 6 i \, c\right )}\right )} \sqrt{-\frac{i}{8 \, a^{5} d^{2}}} \log \left (\frac{1}{4} \,{\left (4 \, a^{3} d \sqrt{-\frac{i}{8 \, a^{5} d^{2}}} e^{\left (2 i \, d x + 2 i \, c\right )} + \sqrt{2} \sqrt{\frac{a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt{\frac{-i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}{\left (e^{\left (2 i \, d x + 2 i \, c\right )} + 1\right )} e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-i \, d x - i \, c\right )}\right ) - 30 \,{\left (a^{3} d e^{\left (10 i \, d x + 10 i \, c\right )} - 2 \, a^{3} d e^{\left (8 i \, d x + 8 i \, c\right )} + a^{3} d e^{\left (6 i \, d x + 6 i \, c\right )}\right )} \sqrt{-\frac{i}{8 \, a^{5} d^{2}}} \log \left (-\frac{1}{4} \,{\left (4 \, a^{3} d \sqrt{-\frac{i}{8 \, a^{5} d^{2}}} e^{\left (2 i \, d x + 2 i \, c\right )} - \sqrt{2} \sqrt{\frac{a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt{\frac{-i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}{\left (e^{\left (2 i \, d x + 2 i \, c\right )} + 1\right )} e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-i \, d x - i \, c\right )}\right )}{120 \,{\left (a^{3} d e^{\left (10 i \, d x + 10 i \, c\right )} - 2 \, a^{3} d e^{\left (8 i \, d x + 8 i \, c\right )} + a^{3} d e^{\left (6 i \, d x + 6 i \, c\right )}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.34572, size = 174, normalized size = 0.73 \begin{align*} \frac{2 \, \sqrt{-2 \,{\left (i \, a \tan \left (d x + c\right ) + a\right )} a + 2 \, a^{2}} a^{3} \log \left (\sqrt{i \, a \tan \left (d x + c\right ) + a}\right )}{-\left (i - 1\right ) \,{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{7} + \left (5 i - 5\right ) \,{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{6} a - \left (9 i - 9\right ) \,{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{5} a^{2} + \left (7 i - 7\right ) \,{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{4} a^{3} - \left (2 i - 2\right ) \,{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{3} a^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]